package com.raos.example.swagger.response;

/**
 * 响应状态码
 *
 * @author raos
 * @email 991207823@qq.com
 * @date 2022/6/21 20:25
 */
public enum ReturnCode {
    OK(0, "请求成功!"),
    ERR(500, "系统异常!")
    ;
    /** 自定义状态码 */
    private int code;
    /** 自定义描述 */
    private String msg;

    ReturnCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }


    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
